<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{gysSmltForm.bundleName}"/>
    <head>
        <title>#{text['gysSmltDetail.title']}</title>
        <meta name="heading" content="#{text['gysSmltDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="gysSmltForm">

<h:form id="gysSmltForm" onsubmit="return validateGysSmltForm(this)">
<h:inputHidden value="#{gysSmltForm.gysSmlt.id}" id="id"/>
<h:panelGrid columns="3">
    <h:outputLabel styleClass="desc" for="fkfs" value="#{text['gysSmlt.fkfs']}"/>
    <t:message for="fkfs" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="fkfs" value="#{gysSmltForm.gysSmlt.fkfs}" required="false" maxlength="10">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="gycpmc" value="#{text['gysSmlt.gycpmc']}"/>
    <t:message for="gycpmc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="gycpmc" value="#{gysSmltForm.gysSmlt.gycpmc}" required="true" maxlength="50">
        <v:commonsValidator type="required" arg="#{text['gysSmlt.gycpmc']}"/>
    </h:inputText>
    <h:outputLabel styleClass="desc" for="gysmc" value="#{text['gysSmlt.gysmc']}"/>
    <t:message for="gysmc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="gysmc" value="#{gysSmltForm.gysSmlt.gysmc}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="ny" value="#{text['gysSmlt.ny']}"/>
    <t:message for="ny" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="ny" value="#{gysSmltForm.gysSmlt.ny}" required="true" maxlength="255">
        <v:commonsValidator type="required" arg="#{text['gysSmlt.ny']}"/>
    </h:inputText>
    <h:outputLabel styleClass="desc" for="operation" value="#{text['gysSmlt.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{gysSmltForm.gysSmlt.operation}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['gysSmlt.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{gysSmltForm.gysSmlt.optdate}" required="false" maxlength="23">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="phone" value="#{text['gysSmlt.phone']}"/>
    <t:message for="phone" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="phone" value="#{gysSmltForm.gysSmlt.phone}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="pjdj" value="#{text['gysSmlt.pjdj']}"/>
    <t:message for="pjdj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="pjdj" value="#{gysSmltForm.gysSmlt.pjdj}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="username" value="#{text['gysSmlt.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{gysSmltForm.gysSmlt.username}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="wjqzk" value="#{text['gysSmlt.wjqzk']}"/>
    <t:message for="wjqzk" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="wjqzk" value="#{gysSmltForm.gysSmlt.wjqzk}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="xh" value="#{text['gysSmlt.xh']}"/>
    <t:message for="xh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xh" value="#{gysSmltForm.gysSmlt.xh}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="ywgxnx" value="#{text['gysSmlt.ywgxnx']}"/>
    <t:message for="ywgxnx" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="ywgxnx" value="#{gysSmltForm.gysSmlt.ywgxnx}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zjysrbz" value="#{text['gysSmlt.zjysrbz']}"/>
    <t:message for="zjysrbz" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zjysrbz" value="#{gysSmltForm.gysSmlt.zjysrbz}" required="false" maxlength="255">
    </h:inputText>

    <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{gysSmltForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty gysSmltForm.gysSmlt.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{gysSmltForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('GysSmlt')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
    <h:outputText/><h:outputText/>
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateGysSmltForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('gysSmltForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
